<?php
ini_set("display_errors", "On");
error_reporting(E_ALL | E_STRICT);
 
include '../c/config.php';
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {}
$query=$mysqli->query("SELECT * FROM `leave_log` limit 0,10 ");
while ($list=$query->fetch_assoc()){
    var_dump($list);
    $lei= json_decode($list['lei'],true);
    var_dump($lei);
    echo "<br />";
}
